<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('renew',['vid'=>$vid])}">虚拟地址列表</a></li>
			<li class="active"><a href="">添加</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('renew_add')}">
			<div class="form-group">
				<label for="input-start_time" class="col-sm-2 control-label">续费开始时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" type="text" name="start_time" id="input-start_time"
						   value="{:date('Y-m-d')}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-end_time" class="col-sm-2 control-label">续费结束时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" type="text" name="end_time" id="input-end_time"
						   value="{:date('Y-m-d',strtotime('+1 year -1 day'))}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-pay_time" class="col-sm-2 control-label">支付时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" type="text" name="pay_time" id="input-pay_time"
						   value="{:date('Y-m-d')}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-price" class="col-sm-2 control-label">支付金额</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="number" name="price" id="input-price"
						   value="">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="vid" value="{$vid}"/>
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>